<?php
/**
 * Supplier Stock In
 */
class SSo extends AppModel {
    var $name = 'SSo';

    var $useTable = 'supplier_stocks_out';

    var $belongsTo = array(
        'SSoH' => array(
            'foreignKey' => 'supplier_stock_out_head_id'
        ),
        'Product', 'CustProductSite'
    );

    var $validate = array(
        'stock_out_qty' => array(
            'rule' => 'numeric',
            'message' => 'Please input stock in qty.',
            'on' => 'create',
            'required' => true
        ),
        'price' => array(
            'rule' => 'numeric',
            'message' => 'Please input product price.',
            'on' => 'create'
        ),
    );
}
?>
